VtMenuBar object_name [options]
Creates a MenuBar. Returns the widget name.
The following code produces a MenuBar containing three Pulldown menus and a Help menu with a HelpOnVersion option.
set app [VtOpen "VtMenuBar Demo"] set form [VtForm $app.form] set menubar [VtMenuBar $form.menubar -helpMenuItemList {ON_VERSION}] set apples [VtPulldown $menubar.apples -label "Apples"] set oranges [VtPulldown $menubar.oranges -label "Oranges"] set kumquats [VtPulldown $menubar.kumquats -label "Kumquats"] VtShow $app.form VtMainLoop
This code produces the following:
See also: